<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<button id="buttons" value="添加用户"></button>


<table width="400" height="100"border="1">

    <tr>
        <th>身份证 </th>
        <th> 姓名  </th>
        <th> 密码  </th>
        <th> 生日  </th>
        <th> 修改  </th>
        <th> 删除  </th>

    </tr>
    <tr th:each="userList:${userList}">
        <td th:text="${userList.id}"> </td>
        <td th:text="${userList.username}"> </td>
        <td th:text="${userList.password}"> </td>
        <td th:text="${userList.birthday}"> </td>
        <td>
            <a th:href="@{'/toEdit?id='+${userList.id}}">点击修改</a>

            </td>
        <td> <a th:href="@{'/delete?id='+${userList.id}}">点击删除</a></td>
    </tr>

</table>
<a href="/toAdd">添加用户</a>
</body>


</html>